aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testin...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-25 21:50:06 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-25 21:50:06 +0100
commiteff16c83d2e3b7c22d071eee55118910b6b6941d (patch)
treedb88c315d8c37523d6a3a20695bd86bb28a52925 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent26e73674db626d51f9eb57349f219907f524b178 (diff)
Support relocation of string address
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected10
1 files changed, 7 insertions, 3 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 92bf46c7..f551d9c3 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -10,7 +10,7 @@ Function[1]:
Memory[1]:
- memory[0] pages: initial=9
Code[1]:
- - func[0] size=4 <f>
+ - func[0] size=8 <f>
Data[1]:
- segment[0] <.data> memory=0 size=9 - init i32=0
- 0000000: 0000 0005 6865 6c6c 6f ....hello
@@ -24,9 +24,13 @@ Custom:
- symbol table [count=2]
- 0: F <f> func=0 [ binding=global vis=default ]
- 1: D <string__0> segment=0 offset=0 size=9 [ binding=global vis=default ]
+Custom:
+ - name: "reloc.CODE"
+ - relocations for section: 3 (Code) [1]
+ - R_WASM_MEMORY_ADDR_SLEB offset=0x000008(file=0x000031) symbol=1 <string__0>
Code Disassembly:
00002f func[0] <f>:
- 000030: 41 00 | i32.const 0
- 000032: 0b | end \ No newline at end of file
+ 000030: 41 80 80 80 80 00 | i32.const 0
+ 000036: 0b | end \ No newline at end of file